package pl.jtb.ctl.tabory.dao.data.vo;

import java.util.Date;
import java.util.List;

public class TripVO implements java.io.Serializable {

    private static final long serialVersionUID = 1L;
    private Long id;
    private StationVO stationFrom;
    private StationVO stationTo;
    private Date dateFrom;
    private Date dateUntil;
    private CompositionVO composition;
    private double distanceKm;
    private List<VagonVO> listVagons;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public StationVO getStationFrom() {
        return stationFrom;
    }

    public void setStationFrom(StationVO stationFrom) {
        this.stationFrom = stationFrom;
    }

    public StationVO getStationTo() {
        return stationTo;
    }

    public void setStationTo(StationVO stationTo) {
        this.stationTo = stationTo;
    }

    public Date getDateFrom() {
        return dateFrom;
    }

    public void setDateFrom(Date dateFrom) {
        this.dateFrom = dateFrom;
    }

    public Date getDateUntil() {
        return dateUntil;
    }

    public void setDateUntil(Date dateUntil) {
        this.dateUntil = dateUntil;
    }

    public CompositionVO getComposition() {
        return composition;
    }

    public void setComposition(CompositionVO composition) {
        this.composition = composition;
    }

    public double getDistanceKm() {
        return distanceKm;
    }

    public void setDistanceKm(double distanceKm) {
        this.distanceKm = distanceKm;
    }

    public List<VagonVO> getListVagons() {
        return listVagons;
    }

    public void setListVagons(List<VagonVO> listVagons) {
        this.listVagons = listVagons;
    }

    @Override
    public String toString() {
        StringBuilder builder = new StringBuilder();
        builder.append("TripVO [id=");
        builder.append(id);
        builder.append(", stationFrom=");
        builder.append(stationFrom);
        builder.append(", stationTo=");
        builder.append(stationTo);
        builder.append(", dateFrom=");
        builder.append(dateFrom);
        builder.append(", dateUntil=");
        builder.append(dateUntil);
        builder.append(", composition=");
        builder.append(composition);
        builder.append(", distanceKm=");
        builder.append(distanceKm);
        builder.append(", listVagons=");
        builder.append(listVagons);
        builder.append("]");
        return builder.toString();
    }

}
